<form nz-form [formGroup]="addEditForm">
  <!-- <nz-form-item>
     <nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="contractNum">合同号</nz-form-label>
     <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
       <input nz-input formControlName="contractNum" id="contractNum" placeholder="合同号"/>
     </nz-form-control>
   </nz-form-item>-->
  <!--  <nz-form-item>
      <nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="fileUrl">文件上传</nz-form-label>
      <nz-form-control nzExtra="文件最大为100M" [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
        <nz-upload [nzShowButton]="fileList.length ===0" [nzSize]="102400" [nzAction]="uploadUrl" [(nzFileList)]="fileList"
                   (nzChange)="handleChange($event)">
          <button nz-button nzType="primary"><i nz-icon nzType="upload"></i>上传</button>
        </nz-upload>
        <input [hidden]="true" nz-input formControlName="fileUrl" id="fileUrl" placeholder="文件上传"/>
      </nz-form-control>
    </nz-form-item>-->
  <!--<nz-form-item>
    <nz-form-label [nzSm]="4" [nzXs]="24" nzFor="fileLabels">标签</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <nz-select nzShowSearch nzMode="multiple"   [nzMaxTagPlaceholder]="tagPlaceHolder" [nzMaxTagCount]="4" nzAllowClear formControlName="fileLabels" nzPlaceHolder="标签" >
        <nz-option *ngFor="let option of labelOptions" [nzLabel]="option.label" [nzValue]="option.value"></nz-option>
      </nz-select>
      <ng-template #tagPlaceHolder let-selectedList>以及 {{ selectedList.length }} 个更多</ng-template>
      <label nz-checkbox name="checkAllLabel" (ngModelChange)="changeIsAllChecked($event)" [ngModelOptions]="{standalone: true}" [(ngModel)]="isCheckAllLabel">全选</label>
    </nz-form-control>
  </nz-form-item>-->
  <!--<nz-form-item>
    <nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="fileState">文件状态</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <nz-select nzShowSearch  nzAllowClear formControlName="fileState" nzPlaceHolder="文件状态" >
        <nz-option *ngFor="let option of fileStateOptions" [nzLabel]="option.label" [nzValue]="option.value"></nz-option>
      </nz-select>
    </nz-form-control>
  </nz-form-item>-->
  <!--  <nz-form-item>
      <nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="typeId">文件类型</nz-form-label>
      <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
        <nz-select nzShowSearch  nzAllowClear formControlName="typeId" nzPlaceHolder="文件类型" >
          <nz-option *ngFor="let option of fileTypeOptions" [nzLabel]="option.label" [nzValue]="option.value"></nz-option>
        </nz-select>
      </nz-form-control>
    </nz-form-item>-->
  <nz-form-item>
    <nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="projectNum">项目号+档案号</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <input nz-input formControlName="projectNum" id="projectNum" placeholder="项目号+档案号"/>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="client">委托方</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <input nz-input formControlName="client" id="client" placeholder="委托方"/>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="projectContent">项目内容</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <textarea nz-input formControlName="projectContent" id="projectContent" placeholder="项目内容"
                [nzAutosize]="{ minRows: 3, maxRows: 5 }"></textarea>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSm]="4" [nzXs]="24" nzFor="signPerson">签订人</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <input nz-input formControlName="signPerson" id="signPerson" placeholder="签订人"/>
    </nz-form-control>
  </nz-form-item>

  <nz-form-item>
    <nz-form-label [nzSm]="4" [nzXs]="24" nzFor="evaluatePerson">评价师</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <input nz-input formControlName="evaluatePerson" id="evaluatePerson" placeholder="评价师"/>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSm]="4" [nzXs]="24" nzFor="lendFlag">借出</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <nz-radio-group formControlName="lendFlag" (ngModelChange)="show($event)">
        <label nz-radio [nzValue]="true">是</label>
        <label nz-radio [nzValue]="false">否</label>
      </nz-radio-group>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item *ngIf="isDisplay">
    <nz-form-label [nzSm]="4" [nzXs]="24" nzFor="lendTime">借出时间</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <nz-date-picker formControlName="lendTime" id="lendTime" placeholder="借出时间" nzAllowClear></nz-date-picker>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item *ngIf="isDisplay">
    <nz-form-label [nzSm]="4" [nzXs]="24" nzFor="lendPerson">借出人</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <input nz-input formControlName="lendPerson" id="lendPerson" placeholder="借出人"/>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSm]="4" [nzXs]="24" nzFor="startTaskTime">下任务时间</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <nz-date-picker formControlName="startTaskTime" id="startTaskTime" placeholder="下任务时间"
                      nzAllowClear></nz-date-picker>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSm]="4" [nzXs]="24" nzRequired nzFor="typeId">标签名称</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <nz-select nzShowSearch nzAllowClear formControlName="typeId" nzPlaceHolder="下拉选择">
        <nz-option *ngFor="let option of labelOptions" [nzLabel]="option.label" [nzValue]="option.value"></nz-option>
      </nz-select>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSm]="4" [nzXs]="24" nzFor="remark">备注</nz-form-label>
    <nz-form-control [nzSm]="18" [nzXs]="24" [nzErrorTip]="combineTpl">
      <textarea nz-input formControlName="remark" id="remark" placeholder="备注"
                [nzAutosize]="{ minRows: 3, maxRows: 5 }"></textarea>
    </nz-form-control>
  </nz-form-item>
</form>
<ng-template #combineTpl let-control>
  <ng-container *ngIf="control.hasError('message')">{{control.errors.message}}</ng-container>
  <ng-container *ngIf="control.hasError('required')">必填项</ng-container>
</ng-template>
